package decorate.formGreenHand;

import decorate.formGreenHand.impl.Shape;

/**
 * 扩展了ShapeDecorator类的实体装饰类
 */
public class RedShapeDecorator extends ShapeDecorator{
    public RedShapeDecorator(Shape decoratorShape) {
        super(decoratorShape);
    }

    @Override
    public void draw() {
        super.draw();
        setRedBorder(target);
    }

    private void setRedBorder(Shape decoratedShape){
        System.out.println("Border Color: Red");
    }
}
